package com.yehuo.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@TableName("o_order_item")
@Data
public class OrderItem {
    @TableId(value = "id",type= IdType.AUTO)
    private Long id;
    @TableField("order_id")
    private Long orderId;
    @TableField("order_no")
    private String orderNo;
    @TableField("user_id")
    private String userId;
    @TableField("user_name")
    private String userName;
    @TableField("user_pic")
    private String userPic;
    @TableField("amount")
    private String amount;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;
    @TableField("note")
    private String note;
    @TableField(exist = false)
    private int isStar = 0;
}